import os
from lib import sbr_episode

class FolderParser:
    directory = ''
    episodes = []
    
    def __init__( self, directory ):
        self.directory = directory
        
        for fileName in os.listdir( self.directory ):
            episode = sbr_episode.EpisodeParser( fileName )

            if episode.valid == 0:
                continue
            
            self.episodes.append( episode )
